package org.sakila.service.impl;

import org.sakila.entities.CommonResult;
import org.sakila.entities.Film;
import org.sakila.service.SakilaFeignService;
import org.springframework.stereotype.Component;

@Component
public class SakilaFallbackService implements SakilaFeignService {
    @Override
    public CommonResult<Film> getFilmById(Long id) {
        return new CommonResult<>(444, "远程调用失败,获取不到数据");
    }

    @Override
    public CommonResult<?> getFilms(Integer start, Integer size) {
        return new CommonResult<>(444, "远程调用失败,获取不到数据");
    }
}
